package com.syher.dubbo.provider;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@EnableAutoConfiguration
@ComponentScan(basePackages = {
        "com.syher.dubbo.provider.core",
        "com.syher.dubbo.provider.service"
})
public class SpringBootDubboProviderApplication implements CommandLineRunner {

    private static final Logger logger = LoggerFactory.getLogger(SpringBootDubboProviderApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(SpringBootDubboProviderApplication.class, args);
    }

    @Override
    public void run(String... strings) throws Exception {
        logger.info("spring boot dubbo provider started.");
    }
}
